package com.ndp.fb.redis.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.NoSave;
import com.ndp.fb.rdb.model.BaseAdLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2014/12/24.
 */
@Setter
@Getter
@NoArgsConstructor
public class AdCampaignGroupLevel extends BaseAdLevel {

    //campaign_group_id
    private Long campaignGroupId;
    //name
    private String name;
    //campaign_group_status
    private String campaignGroupStatus;
    //objective
    private String objective;

    private String promotedObject;                                //{"product_catalog_id":"<PRODUCT_CATALOG_ID>"}

    @Column("start_time_str")
    private String startTimeString;
    @Column(value = "start_time", type = ColumnType.Time)
    private Date startTime;
    @Column(value = "start_utc_time", type = ColumnType.Long)
    private Long startUTCTime;
    @Column("end_time_str")
    private String endTimeString;
    @Column(value = "end_time", type = ColumnType.Time)
    private Date endTime;
    @Column(value = "end_utc_time", type = ColumnType.Long)
    private Long endUTCTime;

    @NoSave
    private List<String> adSetBatchIndexs;

    @NoSave
    private String adCampGroupKey;

}
